export function judgeRole(){
  let select=JSON.parse(localStorage.getItem('warehouse_select'));
  let warehouseList = [];
  let warehouseId = '';
  if (select&&select.length>0){
    warehouseList = select;
    let str = localStorage.getItem('water_user');
    let user = str? JSON.parse(str).loginUser: '';
    // 仓管查当前仓库
    warehouseId = user&&user.type===3?select[0].id:'';
  }
  return {list:warehouseList,id:warehouseId}
}
